﻿.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.rounded-image {
    width: 150px;
    height: 150px;
    border-radius: 30%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

    .rounded-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* پاپ‌آپ */
.modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-height: 90vh;
    max-width: 50vw;
    animation: zoom 0.4s;
}

    .modal-content img {
        display: block;
        max-height: 90vh;
        max-width: 100%;
        height: auto;
        width: auto;
        border-radius: 8px;
    }

/* موبایل: استفاده حداکثر از عرض */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90vw;
    }

        .modal-content img {
            max-width: 90vw;
            max-height: 90vh;
        }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0.1);
    }

    to {
        transform: scale(1);
    }
}


/*.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.rounded-image {
    width: 150px;
    height: 150px;
    border-radius: 30%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;*/ /* اضافه کردن نشانگر موس برای نمایش قابل کلیک بودن */
/*}

    .rounded-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }*/

/* استایل‌های پاپ‌آپ */
/*.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;*/ /* استفاده از Flexbox برای مرکز قرار دادن محتوا */
    /*justify-content: center;
    align-items: center;
}

.modal-content {*/
    /* تغییرات جدید */
    /*max-width: 50vw;*/ /* حداکثر عرض پاپ‌آپ 90% عرض صفحه */
    /*max-height: 90vh;*/ /* حداکثر ارتفاع پاپ‌آپ 90% ارتفاع صفحه */
    /*display: block;*/ /* برای مدیریت بهتر ابعاد */
    /*animation-name: zoom;
    animation-duration: 0.6s;
}

    .modal-content img {*/
        /* تغییرات جدید */
        /*max-width: 40%;*/ /* تصویر از کادر پاپ‌آپ بیرون نزند */
        /*max-height: 100%;*/ /* تصویر از کادر پاپ‌آپ بیرون نزند */
        /*height: auto;*/ /* حفظ نسبت ابعاد تصویر */
        /*width: auto;
        display: block;
    }

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}*/

/* انیمیشن زوم برای پاپ‌آپ */
/*@@keyframes zoom {
    from {
        transform: scale(0.1);
    }

    to {
        transform: scale(1);
    }
}*/
